Integrand size = 23, antiderivative size = 53 \[ \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \sec (c+d x))} \, dx=\frac {2 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{a d}-\frac {2 b \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right )}{a (a+b) d} \]
[Out]
Time = 0.22 (sec) , antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {4349, 3933, 2882, 2720, 2884} \[ \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \sec (c+d x))} \, dx=\frac {2 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{a d}-\frac {2 b \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right )}{a d (a+b)} \]
[In]
[Out]
Rule 2720
Rule 2882
Rule 2884
Rule 3933
Rule 4349
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)}}{a+b \sec (c+d x)} \, dx \\ & = \int \frac {\sqrt {\cos (c+d x)}}{b+a \cos (c+d x)} \, dx \\ & = \frac {\int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{a}-\frac {b \int \frac {1}{\sqrt {\cos (c+d x)} (b+a \cos (c+d x))} \, dx}{a} \\ & = \frac {2 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{a d}-\frac {2 b \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right )}{a (a+b) d} \\ \end{align*}
Time = 0.25 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.91 \[ \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \sec (c+d x))} \, dx=\frac {2 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )-\frac {2 b \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right )}{a+b}}{a d} \]
[In]
[Out]
Time = 4.80 (sec) , antiderivative size = 187, normalized size of antiderivative = 3.53
method | result | size |
default | \(-\frac {2 \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \left (\operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) a -b \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+b \operatorname {EllipticPi}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \frac {2 a}{a -b}, \sqrt {2}\right )\right )}{a \left (a -b \right ) \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(187\) |
[In]
[Out]
Timed out. \[ \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \sec (c+d x))} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \sec (c+d x))} \, dx=\int \frac {1}{\left (a + b \sec {\left (c + d x \right )}\right ) \sqrt {\cos {\left (c + d x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \sec (c+d x))} \, dx=\int { \frac {1}{{\left (b \sec \left (d x + c\right ) + a\right )} \sqrt {\cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \sec (c+d x))} \, dx=\int { \frac {1}{{\left (b \sec \left (d x + c\right ) + a\right )} \sqrt {\cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \sec (c+d x))} \, dx=\int \frac {1}{\sqrt {\cos \left (c+d\,x\right )}\,\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )} \,d x \]
[In]
[Out]